<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Company/index')}">所有地区</a></li>
        <li><a href="{:url('Company/add')}">添加地区</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('Company/listOrder')}">
        <php>$status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>{:lang('NAME')}</th>
                <th>管理员</th>
                <th width="120">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{:getUserName($vo.user_id)}</td>
                    <td>
                        <a href="{:url('Company/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a href="{:url('Company/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
                            {:lang('DELETE')}
                        </a>
                        <a href="{:url('Register/index',array('company_id'=>$vo['id']))}">
                            查看
                        </a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>